package itdfq.ydd.Structural_Patterns.xiangyuan;

/**
 * @Author GocChin
 * @Date 2021/4/20 18:59
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210136  杨丹丹");
        Weiqi w1,w2,w3,sw4,w5;
        WeiqiFactory weiqiFactory = new WeiqiFactory();
        w1=weiqiFactory.getWeiqi("白色");
        w1.who(1,2);
        w1=weiqiFactory.getWeiqi("黑色");
        w1.who(2,1);
        w1=weiqiFactory.getWeiqi("白色");
        w1.who(3,2);
        w1=weiqiFactory.getWeiqi("黑色");
        w1.who(4,1);
        w1=weiqiFactory.getWeiqi("白色");
        w1.who(5,2);
        System.out.println("总棋手为"+weiqiFactory.getTotalWeiqi());
        System.out.println("总棋子个数为："+weiqiFactory.getTemp());
    }
}
